const express = require('express')
const app = express()
const { verifyToken } = require('./tools/token')
const cookieParser = require('cookie-parser')

app.use(cookieParser())

app.use('/', require('./router/index'))
app.use('/admin', verifyToken, require('./router/admin'))

app.listen(3008)